﻿//var s=document.createElement('script');s.type='text/javascript';s.src='http://localhost/naver/2011mystery_ch20.js';document.body.appendChild(s);

var blacklily = {};

blacklily.div = document.createElement('div');
blacklily.div.style.height='224px';
blacklily.div.style.backgroundColor='black';
blacklily.div.style.position='absolute';
blacklily.div.style.width='960px';
blacklily.div.style.marginLeft='-480px';
blacklily.div.style.zIndex= '1000000';
blacklily.div.style.top='0';
blacklily.div.style.left='50%';
blacklily.div.style='background: none repeat scroll 0% 0% black; position: absolute; height: 100px; top: 0pt; left: 50%; width: 960px; margin-left: -490px; z-index: 1000000;'
blacklily.div.style.textAlign="center";
blacklily.div.innerHTML='<a href="http://princescans.wordpress.com/"><img src="http://princescans.files.wordpress.com/2013/10/11.png"alt="PrinceScans" style="margin-top: 498px;"/><img src="http://princescans.files.wordpress.com/2013/10/24.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/31.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/41.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/51.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/61.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/71.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/121.png"alt="PrinceScans" style="margin-top: 6000px;"/><img src="http://princescans.files.wordpress.com/2013/10/131.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/141.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/151.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/161.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/171.png"alt="PrinceScans" style="margin-top: 00px;"/><img src="http://princescans.files.wordpress.com/2013/10/221.png"alt="PrinceScans" style="margin-top: 5500px;"/><img src="http://princescans.files.wordpress.com/2013/10/231.png"alt="PrinceScans" style="margin-top: 00px;"/></a>';


blacklily.addBubble = function(t,x1,y1,x2,y2,tc,bc) {
	bubble=document.createElement('div');
	bubble.style.position='absolute';
	bubble.style.top=y1+'px';
	bubble.style.left=x1+'px';
	if (typeof x2 == 'number' || x2.indexOf('%') == -1) { //dne
		bubble.style.width=x2+'px';
	} else { bubble.style.width=x2 }
	if (typeof y2 == 'number' || y2.indexOf('%') == -1) { //dne
		bubble.style.height=y2+'px';
	} else { bubble.style.height=y2 }
	bubble.style.display='table';
	
	innerBubble=document.createElement('div');
	innerBubble.style.color=tc;
	innerBubble.style.backgroundColor=bc;
	innerBubble.style.verticalAlign='middle';
	innerBubble.style.display='table-cell';
	innerBubble.style.textAlign='center';
	innerBubble.style.padding="10px";
	
	innerBubble.innerHTML=t
	bubble.appendChild(innerBubble);
	
	blacklily.div.appendChild(bubble);
}
document.body.appendChild(blacklily.div);

blacklily.addBubble('Trad: Blacklily | Rev: Ivy', 221,353,200,50,'black','transparent');
